package it.side.messaging.client;


/**
 * Filter based on sender
 * @author Simone Masoni
 */
public class SenderMessageFilter implements MessageFilter {

	private String from;
	
	public SenderMessageFilter(String from) {
		super();
		this.from = from;
	}

	@Override
	public final boolean accept(Message m) {
		return from.equalsIgnoreCase(m.getFrom());
	}
	
}
